﻿namespace MicroCloud.Identity.Entities
{
    /// <summary>
    /// 实体类：用户的身份认证令牌
    /// </summary>
    [Description("用户的身份认证令牌")]
    [ValueGenerate(ValueGenerateRule.Never, ValueGenerateMode.Snowflake)]
    [Table(nameof(UserToken), Schema = TableSchemaConstants.Identity)]
    public class UserToken : UserTokenBase<long, long>
    {
        #region 导航属性        
        /// <summary>
        /// 获取或设置 所属用户信息
        /// </summary>
        [JsonIgnore]
        public virtual User User { get; set; }

        #endregion

    }
}